<%include header%>
    <div class="container mt-100 mb-50">
        <div class="row">
            <div class="col-md-4">
                <%- include('components/user-info',{user: authUser})%>
            </div>

            <div class="col-md-8">
                <form class="form-horizontal" enctype="multipart/form-data" method="post">
                    <div class="form-group">
                        <label for="">头像</label>
                        <div class="upload">
                            <img src="/img/upload.png" accept="image/*" class="upload__img" alt="">
                            <input type="file" class="upload__input" name="img">
                        </div>
                        <%#- include('components/upload', {src:user.avatar, name:'avatar' }) %>
                    </div>
                    <div class="form-group">
                        <label>性别</label>
                        <select class="form-control" name="sex" id="" value='x'>
                            <%[['m', '男' ],['f','女'],['x','保密']].forEach((item)=> {%>
                                <option value="<%= item[0] %>" <%=user.sex ? 'selected' : '' %>

                                    ><%= item[1]%>
                                </option>

                                <%})%>

                        </select>
                    </div>

                    <div class="form-group">
                        <label>自我描述</label>

                        <textarea name="bio" class="form-control" rows="15"><%=user.info%></textarea>
                    </div>
                    <div class="form-group text-align-center mt-50">
                        <input type="submit" class="btn btn-primary
                        btn-lg
                        br-30
                        pt-6
                        pb-6
                        w-120
                        bg-color-primary
                        bd-color-primary
                        outline-none
                        color-white" value="发 布 ">
                    </div>

                </form>
            </div>
        </div>
    </div>

    <% include footer %>